package com.cjc.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cjc.dao.ClazzMapper;
import com.cjc.model.Clazz;
@Controller
@ResponseBody
@RequestMapping("/clazz")
public class ClazzManageController {
@Resource
private ClazzMapper cla;
@RequestMapping("/findAll.do")
public Map<String, Object>findAll(Clazz c){
	List<Clazz> list=cla.fandAll(c);
	Map<String, Object> map=new HashMap<String, Object>();
	map.put("code", 0);
	map.put("count", list.size());
	map.put("data", list);
	return map;
	
}
}
